/*

Pencil - Traditional Animation Software
Copyright (C) 2006-2009 Pascal Naidon

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation;

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

*/
#include "colourref.h"

ColourRef::ColourRef() {
	colour = Qt::green;
	name = QString("Green");
}

ColourRef::ColourRef(QColor theColour, QString theName) {
	colour = theColour;
	name = theName;
}

bool ColourRef::operator==(ColourRef colourRef1) {
	if( (colour == colourRef1.colour) && (name == colourRef1.name) ) {
		return true;
	} else {
		return false;
	}
}

bool ColourRef::operator!=(ColourRef colourRef1) {
	if( (colour != colourRef1.colour) || (name != colourRef1.name) ) {
		return true;
	} else {
		return false;
	}
}
